<?php
/**
 * Comments Template
 *
 * This template file handles the display of comments, pingbacks and trackbacks.
 *
 * External functions are used to display the various types of comments.
 *
 * @package WooFramework
 * @subpackage Template
 */

// Do not delete these lines
if ( ! empty( $_SERVER['SCRIPT_FILENAME'] ) && 'comments.php' == basename( $_SERVER['SCRIPT_FILENAME'] ) ) {
	die ( 'Please do not load this page directly. Thanks!' );
}
?>

<h3>NHẬN XÉT SẢN PHẨM</h2>
<!-- Comment list -->
<?php
$title_reply = '';
if(have_comments()) 
{ ?>				
	<ul class="commentlist">
		<?php wp_list_comments( "type=comment&callback=product_comment_format_html&avatar_size=0" );?>
	</ul>
	<?php 
	if ( get_comment_pages_count() > 1)
	{ ?>
	<div class="navigation">
		<div class="nav-previous"><?php previous_comments_link( __( '<span class="meta-nav">&larr;</span> Previous', 'woothemes' ) ); ?></div>
		<div class="nav-next"><?php next_comments_link( __( 'Next <span class="meta-nav">&rarr;</span>', 'woothemes' ) ); ?></div>
	</div>
	<?php 
	} 
}
?>


<h5>Chúng tôi muốn biết ý kiến của bạn</h4>

<form action="" method="post" id="form_comment" name="form_comment" >
	<input type="hidden" value="add_comment_product" name="action">
	<input type="hidden" value="<?php echo $post->ID;?>" name="id_post">
	<input type="hidden" value="0" id="rating1" name="chatluong">
	<input type="hidden" value="0" id="rating2" name="hinhdang">
	<input type="hidden" value="0" id="rating3" name="gia">
	 
	<div style="border:1px solid #D3D3D3">
			<div id="cdls">
				  <span style="display:block;float:left;font-weight:bold;margin:0 11px 1px">Chất Lượng * </span>
				  <p class="stars">
					<span id="chatluongs" data_input="chatluong">
						<a class="select-start star-1" rel="" href="#">1</a>
						<a class="select-start star-2" rel="" href="#">2</a>
						<a class="select-start star-3" rel="" href="#">3</a>
						<a class="select-start star-4" rel="" href="#">4</a>
						<a class="select-start star-5" rel="" href="#">5</a>
					</span>
				  </p>
				  
				  <span style="display:block;float:left;font-weight:bold;margin:0 11px 1px">Hình Dạng *   </span>
				  <p class="stars" style="margin-left:97px;">
					<span id="hinhdangs"  data_input="hinhdang">
						<a class="select-start star-1" rel="" href="#">1</a>
						<a class="select-start star-2" rel="" href="#">2</a>
						<a class="select-start star-3" rel="" href="#">3</a>
						<a class="select-start star-4" rel="" href="#">4</a>
						<a class="select-start star-5" rel="" href="#">5</a>
					</span>
				  </p>
				  
				  <span style="display:block;float:left;font-weight:bold;margin:0 11px 1px">Giá * </span>
				  <p class="stars" style="margin-left:96px;">
					<span id="gia_starts"  data_input="gia">
						<a class="select-start star-1" rel="" href="#">1</a>
						<a class="select-start star-2" rel="" href="#">2</a>
						<a class="select-start star-3" rel="" href="#">3</a>
						<a class="select-start star-4" rel="" href="#">4</a>
						<a class="select-start star-5" rel="" href="#">5</a>
					</span>
				  </p>
			 </div> 
	</div>
	<div class="row-fluid" id="as_opo">
		<div class="span6">
			<div>
				<label>Tên *</label>
				<input  class="t-saer" type="text" name="comment_name"/>
			</div>
			<div>
				<label>Tiêu đề *</label>
				<input name="comment_title" class="t-saer" type="text" />
			</div>
		</div>
		<div class="span6">
			<div>
				<label>Bình luận *</label>
				<textarea id="textarea_as"  name="comment_content" ></textarea>
			</div>
		</div>
	</div>
	 <div>
		<div class="pull-left alert alert-error alert-comment-error" style="display:none"><strong>Lỗi! </strong>Hãy nhập tất cả các thông tin bắt buộc!</div>
		<div class="pull-left alert alert-success alert-comment-success" style="display:none"><strong>Thành công! </strong>Đã gửi bình luận!</div>
		 <input type="submit"  class="btn pull-right" value="Gửi nhận xét" />
	 </div>
</form>
